package com.itheima.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.domain.OmsOrderSetting;
import com.itheima.mapper.OmsOrderSettingMapper;
import com.itheima.service.OmsOrderSettingService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 订单设置表 服务实现类
 * </p>
 *
 * @author zhuguo
 * @since 2022-11-10
 */
@DubboService
public class OmsOrderSettingServiceImpl extends ServiceImpl<OmsOrderSettingMapper, OmsOrderSetting> implements OmsOrderSettingService {

    @Autowired
    OmsOrderSettingMapper omsOrderSettingMapper;

    //获取指定订单设置
    @Override
    public OmsOrderSetting get(Long id) {
        return omsOrderSettingMapper.selectById(id);
    }

    //修改指定订单设置
    @Override
    public void updates(Long id, OmsOrderSetting omsOrderSetting) {
        omsOrderSettingMapper.updateById(omsOrderSetting);
    }
}
